
/* px em rem 等长度单位演示 */

html{
    font-size: 62.5%; /*16px * 0.625 = 10 px */
}


body{
    font-size: 1em;
}


.value_px{
    font-size: 32px;
}

.value_em{
    font-size: 2em;
}

.value_rem{
    font-size: 2rem;
}


/* 颜色值 */

.color_name{
    color: red;
}


.color_hex{
    color: #00ff00;
}

.color_rgb{
    color: rgb(123, 23, 255);
}

/* 图片函数url */
.img_rul{
    width: 400px;
    height: 80px;
    background-image: url("lihai.jpg");
    font-weight: bold;
}

/* 常用字体样式属性 */
.font_demo{
    /* font: 400; */
    color: red;
    font-size: 2em;
    font-style: italic;
    font-weight: bold;
    font-family: "宋体", sans-serif;
}

/* 常见文本样式属性 */
.text_demo{
    font-size: 3em;
    border:1pm solid black;
    width: 30rem;
    height: 10rem;
    text-align: center;
    line-height: 10rem;
    text-decoration: underline;
    text-indent: 3rem;
    letter-spacing: 1rem;
    
}

ul{
    font-size: 2rem;
}

.list_demo{
    list-style-image: url(2.png);
    list-style-type: none;
    list-style-position: inside;
}

.bg_box{
    border: 1px solid red;
    width: 40rem;
    height: 10rem;
}

.bg_demo1{
    background-color: coral;
}

.bg_demo2{
    background-image: url(lihai.jpg);
}

.bg_demo3{
    background-image: url(lihai.jpg);
    background-repeat: repeat-y;
}

.bg_demo4{
    background-repeat: no-repeat;
    background-image: url(lihai.jpg);
    background-position: center center;
}

.bg_demo5{
    background-repeat: no-repeat;
    background-image: url(lihai.jpg);
    background-position: top right;
    background-attachment: fixed;
}
.bg_demo6{
    background:   skyblue url(lihai.jpg) repeat-x top right  fixed;
}


.table_demo{
    font-size: 2rem;
    border: 1px solid blanchedalmond;
    width: 70%;
    margin: 0 auto;
    table-layout: fixed;
    border-collapse: collapse;
    caption-side: top;
}

.table_demo th,.table_demo td{
     border:1px solid #000000;
     text-align: center;
}


.table_demo thead{
    background-color: rgb(187, 39, 39);
    color: white;
}

.table_demo tbody tr:hover{
    background: #d8e61d;
    cursor: pointer;
}

.table_demo tfoot td{
    text-align: right;

}